﻿using Domain.Model.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ValidBox4Mvc.ValidRules;

namespace Domain.Model
{
    public class UserHistory : Entity
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        [Length(5, 15)]
        public string Account { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [Length(20)]
        public string NickName { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        /// </summary>
        public Levels Level { get; set; }
        /// <summary>
        /// 升级前级别
        /// </summary>
        [Length(20)]
        public string LevelBefore { get; set; }
        /// <summary>
        /// 升级后级别
        /// </summary>
        [Length(20)]
        public string LevelAfter { get; set; }
        /// <summary>
        /// 申请日期
        /// </summary>
        public DateTime? AppliyTime { get; set; }
        /// <summary>
        /// 确认人编号
        /// </summary>
        [Length(20)]
        public string ConfirmNo { get; set; }
        /// <summary>
        /// 确认人昵称
        /// </summary>
        [Length(20)]
        public string ConfirmNickName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public VerifyState State { get; set; }
        /// <summary>
        /// 激活类型
        /// </summary>
        [Length(20)]
        public string ActivateType { get; set; }
        /// <summary>
        /// 激活人编号/昵称
        /// </summary>
        [Length(50)]
        public string ActivateNoName { get; set; }
        /// <summary>
        /// 激活时间
        /// </summary>
        public DateTime? ActivateTime { get; set; }

        /// <summary>
        /// 投资金额
        /// </summary>
        public decimal? NvestmentAmount { get; set; }

        public UserHistory()
        {
            this.CreateTime = DateTime.Now;
        }
        /// <summary>
        /// 历史类型
        /// </summary>
        public HistoryType HistoryType { get; set; }
    }
}
